<div id="header" class="<?php print $TEXT_DIRECTION; ?>">
<table width="99%">
	<tr>
		<td><a href="index.php?command=gedcom"><img src="<?php print $THEME_DIR;?>header.gif" alt="<?php print $gm_lang["welcome_page"];?>"/></a></td>
		<td>
			<table width="100%">
			<tr>
				<td align="center" valign="top">
					<b>
					<?php print_user_links(); ?>
					<br />
					<a href="<?php print $HOME_SITE_URL; ?>"><?php print $HOME_SITE_TEXT; ?></a>
					</b>
					<div class="title <?php print $TEXT_DIRECTION=="rtl"?"left":"right" ?>">
						<?php print_gedcom_title_link(TRUE); ?>
					</div>
				</td>
				<td align="<?php print $TEXT_DIRECTION=="rtl"?"left":"right" ?>" valign="middle" >
					<?php print_lang_form(); ?>
					<?php print_theme_dropdown(); ?>
				</td>
                    <td align="<?php print $TEXT_DIRECTION=="rtl"?"left":"right" ?>" valign="middle" >
					<form action="search.php" method="get">
						<input type="hidden" name="action" value="general" />
						<input type="hidden" name="topsearch" value="yes" />
						<input type="text" name="query" accesskey="<?php print $gm_lang["accesskey_search"]?>" size="12" value="<?php print $gm_lang['search']?>" onfocus="if (this.value == '<?php print $gm_lang['search']?>') this.value=''; focusHandler();" onblur="if (this.value == '') this.value='<?php print $gm_lang['search']?>';" />
						<input type="submit" name="search" value="&gt;" />
					</form>
					<?php print_favorite_selector(); ?>
				</td>
			</tr>
			</table>
		</td>
	</tr>
</table>
</div>
<!-- close div for div id="header" -->
